// MappingData.h: interface for the CMappingData class.
//
//////////////////////////////////////////////////////////////////////
#if !defined(AFX_MAPPINGDATA_H__B8E91F6D_ED8B_40E2_9CBE_22C7841B9DCC__INCLUDED_)
#define AFX_MAPPINGDATA_H__B8E91F6D_ED8B_40E2_9CBE_22C7841B9DCC__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#define SLOT_NO		25
#define IN_CHECK	1
#define WORK_POS	1

#include "CFileManager.h"

class CMappingData  
{
private:
	BOOL m_nMappingData[SLOT_NO];
	int m_nWorkPos[SLOT_NO][WORK_POS];
	int m_nMappingCount;
	int m_nWaferCount;
	int m_nWaferStartPoint;
	BOOL m_nWaferSele;

public:
	CMappingData();
	virtual ~CMappingData();
	void SetMappingCount(int iCount);
	void SetMappingData(UINT Noslot,BOOL m_flgset);
	void SetWorkPos(UINT Noslot,int WorkPos, int SetData);
	
	int GetMappingCount();
	BOOL GetMappingData(UINT Noslot);
	int	GetWorkPos(UINT Noslot,int WorkPos);
	
	void Datainit();
	void SetWaferCountData(int nWaferCount) {m_nWaferCount = nWaferCount;}
	int GetWaferCountData(){ return m_nWaferCount;}
	void SetWaferStartPoint(int nWaferStartPoint) {m_nWaferStartPoint = nWaferStartPoint;}
	int GetWaferStartPoint(){return m_nWaferStartPoint;}

	void SetWaferSelection(BOOL nWaferSele) { m_nWaferSele = nWaferSele;}
	BOOL GetWaferSelection(){return m_nWaferSele;}

};

#endif // !defined(AFX_MAPPINGDATA_H__B8E91F6D_ED8B_40E2_9CBE_22C7841B9DCC__INCLUDED_)
